import request from '../util/request'


export function listGame() {
    return request({
        url: '/boxGame/list',
        method: 'get',
    })
}

export function pageGameByGameTypeIdAndGameName(typeId, gameName, page, pageSize) {
    return request({
        url: '/boxGame/pageByGameTypeAndGameName',
        method: 'get',
        params: {
            gameName: gameName,
            gameTypeId: typeId,
            page: page,
            pageSize: pageSize
        }
    })
}

export function getGameByGameId(gameId) {
    return request({
        url: '/boxGame/get',
        method: 'get',
        params: {
            id: gameId
        }
    })
}

export function listRecommendGame() {
    return request({
        url: '/boxGame/listRecommendGame',
        method: 'get'
    })
}
